import java.awt.Point;
import org.rsbot.script.methods.Calculations;
import org.rsbot.script.methods.NPCs;
import org.rsbot.script.methods.Walking;
import org.rsbot.script.wrappers.RSNPC;
import org.rsbot.script.wrappers.RSPlayer;
import org.rsbot.script.wrappers.RSTile;

class VoluntaryThieve$Actions$14 extends VoluntaryThieve.Action
{
  VoluntaryThieve.Action.State perform()
  {
    return VoluntaryThieve.access$8600(this.this$1.this$0).walkTo(new RSTile(4763 + VoluntaryThieve.Actions.access$1100(this.this$1).x, 5793 + VoluntaryThieve.Actions.access$1100(this.this$1).y)) ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State confirm()
  {
    return this.this$1.this$0.getMyPlayer().isMoving() ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State finish()
  {
    RSNPC localRSNPC = VoluntaryThieve.access$8700(this.this$1.this$0).getNearest(VoluntaryThieve.Actions.Methods.access$3300(VoluntaryThieve.Actions.access$1700(this.this$1)));
    if (localRSNPC == null) {
      VoluntaryThieve.Antibans.access$4300(VoluntaryThieve.access$4200(this.this$1.this$0), new int[] { 0 }, this.this$1.this$0.random(17, 23));
    }
    return (localRSNPC != null) && (VoluntaryThieve.access$8800(this.this$1.this$0).tileOnMap(localRSNPC.getLocation())) ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }
}